--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 31df4cd3ccd8ea2d73627bcad292723a2aed2cbf
Parents : 1f058ad
Author : AutumnSpark1226 <autumnspark1226@tuta.io>
Signature : Signature validation error
Date : 2025-06-14T22:46:14+02:00
update example systemd config file
- add (disabled by default) options for starting after another service (rnsd, nomadnet, etc.)
- add comments explaining some options
Changes
Diff
diff --git a/amberpages.service b/amberpages.service
index 6007edb..72aa9c1 100644
--- a/amberpages.service
+++ b/amberpages.service
@@ -1,13 +1,23 @@
+# put this file in /etc/systemd/system/
+
[Unit]
Description=Amber Pages service for NomadNetwork
-After=network.target
+DefaultDependencies=no
+# only use this if you have another service that should start a shared reticulum instance (standalone rnsd, NomadNet, etc.)
+#After=SERVICE.service
[Service]
Type=simple
+# the user running the daemon (should be the same one that runs NomadNet)
User=USER
+# as well as the group (get the group by running "id -gn" as the user, common names are the username or "users")
+Group=GROUP
+# restart after failing
Restart=always
-ExecStart=/usr/bin/python3 /opt/amberpages/daemon.py
-StandardOutput=file:/opt/amberpages/log_file
+# use this with with After=... to allow reticulum to start up before the AmberPages service starts
+#ExecStartPre=/bin/sleep 3
+# set the path to daemon.py here
+ExecStart=/usr/bin/python3 /PATH/TO/daemon.py
[Install]
-WantedBy=multi-user.target
+WantedBy=default.target
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────